<h1>Listing Pages</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Url</th>
  </tr>

<% for page in @pages %>
  <tr>
    <td><%=h page.name %></td>
    <td><%=h page.url %></td>
    <td><%= link_to 'Show', page %></td>
    <td><%= link_to 'Edit', edit_page_path(page) %></td>
    <td><%= link_to 'Destroy', page, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<div class="actions">
  <%= link_to 'New Page', new_page_path %>
</div>
